<?php

namespace app\http\middleware;

use app\common\model\User;

class ApiUserBindPhone
{
    public function handle($request, \Closure $next)
    {
        $userId =  request()->userId;
        if($userId < 1) TApiException('用户没有绑定手机号',20008,200);
        // (new User())->otherLoginIsBindPhone($param);
        return $next($request);
    }
}
